package com.lindroy.androidplayer.viewmodels

import androidx.lifecycle.ViewModel
import com.lindroy.androidplayer.utils.SingleLiveEvent

/**
 * @author Lin
 * @date 2022/2/18
 * @function
 */
data class CollectedArticleItemViewModel(
    val author: String = "",
    val chapterId: Int = 0,
    val chapterName: String = "",
    val courseId: Int = 0,
    val desc: String = "",
    val envelopePic: String = "",
    val id: Int = 0,
    val link: String = "",
    val niceDate: String = "",
    val origin: String = "",
    val originId: Int = 0,
    val publishTime: Long = 0,
    val title: String = "",
    val userId: Int = 0,
    val visible: Int = 0,
    val zan: Int = 0,
    val itemClickListener:SingleLiveEvent<CollectedArticleItemViewModel>,
) : ViewModel() {

    fun onItemClick() {
        itemClickListener.postValue(this)
    }
}